<?php

class UserLoginForm extends Portlet
{
	public $title='Polling';

	protected function renderContent()
	{
		$form=new PollingForm;
		if(isset($_POST['PollingForm']))
		{
			$form->attributes=$_POST['PollingForm'];
			if($form->validate())
				$this->controller->refresh();
		} 
		$this->render('userLogin',array('form'=>$form));
		//$this->render('userLogin');
	}
}
